﻿@namespace AntDesign.Pro
@using OneOf
@inherits LayoutComponentBase

<div class="container">
    <div class="lang">
        <!--todo: selectLang-->
    </div>
    <div class="content">
        <div class="top">
            <div class="header">
                <a>
                    <img alt="logo" class="logo" src="assets/logo.svg" />
                    <span class="title">Ant Design</span>
                </a>
            </div>
            <div class="desc">Ant Design 是西湖区最具影响力的 Web 设计规范</div>
        </div>
        @Body
    </div>
    <GlobalFooter Links="_links">
        <Copyright>
            Copyright <Icon Type="copyright" /> 2019 蚂蚁金服体验技术部出品
        </Copyright>
    </GlobalFooter>
</div>

@code
{
    private readonly LinkItem[] _links = new LinkItem[]
    {
        new LinkItem{ Key = "", BlankTarget = true, Title = "Ant Design Pro"}, 
        new LinkItem{ Key = "", BlankTarget = true, Title = OneOf<string, RenderFragment>.FromT1(@<Icon Type="github" />)}, 
        new LinkItem{ Key = "", BlankTarget = true, Title = "Ant Design"}, 
    };
}
